package miiteen.demo.duty.service;

import miiteen.core.configuration.MeetingProperties;
import miiteen.data.dao.BaseDao;
import miiteen.data.service.impl.BaseServiceImpl;
import miiteen.demo.duty.beans.Instruction;
import miiteen.demo.duty.dao.InstructionDao;
import miiteen.demo.utils.CommonUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.List;
import java.util.Map;


@Service("instructionService")
public class InstructionService extends BaseServiceImpl<Instruction> {
    @Autowired
    private InstructionDao instructionDao;

    @Override
    protected BaseDao<Instruction> getDao() {
        return instructionDao;
    }

    public List<Instruction> findByUserName(Map<String,Object> map){
        return instructionDao.findByUserName(map);
    }


    public List<Instruction> searchAllInstructions(  Map<String,Object> map){
        return  instructionDao.findAllList(map);
    }

    public Instruction findTotalCount(Map<String,Object> map){
        return  instructionDao.findTotalCount(map);
    }

}
